<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - ged.info - test/impl/execution_monitor.ipp</title>
  <link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../index.html">directory</a> - <a href="index.html">test/impl</a> - execution_monitor.ipp</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>ged.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2009-06-09</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">223</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">25.6 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">57</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : //  (C) Copyright Gennadiy Rozental 2001-2008.
<span class="lineNum">       2 </span>                : //  (C) Copyright Beman Dawes and Ullrich Koethe 1995-2001.
<span class="lineNum">       3 </span>                : //  Use, modification, and distribution are subject to the
<span class="lineNum">       4 </span>                : //  Boost Software License, Version 1.0. (See accompanying file
<span class="lineNum">       5 </span>                : //  http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">       6 </span>                : 
<span class="lineNum">       7 </span>                : //  See http://www.boost.org/libs/test for the library home page.
<span class="lineNum">       8 </span>                : //
<span class="lineNum">       9 </span>                : //  File        : $RCSfile$
<span class="lineNum">      10 </span>                : //
<span class="lineNum">      11 </span>                : //  Version     : $Revision: 49312 $
<span class="lineNum">      12 </span>                : //
<span class="lineNum">      13 </span>                : //  Description : provides execution monitor implementation for all supported
<span class="lineNum">      14 </span>                : //  configurations, including Microsoft structured exception based, unix signals
<span class="lineNum">      15 </span>                : //  based and special workarounds for borland
<span class="lineNum">      16 </span>                : //
<span class="lineNum">      17 </span>                : //  Note that when testing requirements or user wishes preclude use of this
<span class="lineNum">      18 </span>                : //  file as a separate compilation unit, it may be included as a header file.
<span class="lineNum">      19 </span>                : //
<span class="lineNum">      20 </span>                : //  Header dependencies are deliberately restricted to reduce coupling to other
<span class="lineNum">      21 </span>                : //  boost libraries.
<span class="lineNum">      22 </span>                : // ***************************************************************************
<span class="lineNum">      23 </span>                : 
<span class="lineNum">      24 </span>                : #ifndef BOOST_TEST_EXECUTION_MONITOR_IPP_012205GER
<span class="lineNum">      25 </span>                : #define BOOST_TEST_EXECUTION_MONITOR_IPP_012205GER
<span class="lineNum">      26 </span>                : 
<span class="lineNum">      27 </span>                : // Boost.Test
<span class="lineNum">      28 </span>                : #include &lt;boost/test/detail/config.hpp&gt;
<span class="lineNum">      29 </span>                : #include &lt;boost/test/detail/workaround.hpp&gt;
<span class="lineNum">      30 </span>                : #include &lt;boost/test/execution_monitor.hpp&gt;
<span class="lineNum">      31 </span>                : #include &lt;boost/test/debug.hpp&gt;
<span class="lineNum">      32 </span>                : 
<span class="lineNum">      33 </span>                : // Boost
<span class="lineNum">      34 </span>                : #include &lt;boost/cstdlib.hpp&gt;    // for exit codes
<span class="lineNum">      35 </span>                : #include &lt;boost/config.hpp&gt;     // for workarounds
<span class="lineNum">      36 </span>                : 
<span class="lineNum">      37 </span>                : // STL
<span class="lineNum">      38 </span>                : #include &lt;string&gt;               // for std::string
<span class="lineNum">      39 </span>                : #include &lt;new&gt;                  // for std::bad_alloc
<span class="lineNum">      40 </span>                : #include &lt;typeinfo&gt;             // for std::bad_cast, std::bad_typeid
<span class="lineNum">      41 </span>                : #include &lt;exception&gt;            // for std::exception, std::bad_exception
<span class="lineNum">      42 </span>                : #include &lt;stdexcept&gt;            // for std exception hierarchy
<span class="lineNum">      43 </span>                : #include &lt;cstring&gt;              // for C string API
<span class="lineNum">      44 </span>                : #include &lt;cassert&gt;              // for assert
<span class="lineNum">      45 </span>                : #include &lt;cstddef&gt;              // for NULL
<span class="lineNum">      46 </span>                : #include &lt;cstdio&gt;               // for vsnprintf
<span class="lineNum">      47 </span>                : #include &lt;cstdarg&gt;              // for varargs
<span class="lineNum">      48 </span>                : 
<span class="lineNum">      49 </span>                : #ifdef BOOST_NO_STDC_NAMESPACE
<span class="lineNum">      50 </span>                : namespace std { using ::strerror; using ::strlen; using ::strncat; }
<span class="lineNum">      51 </span>                : #endif
<span class="lineNum">      52 </span>                : 
<span class="lineNum">      53 </span>                : // to use vsnprintf
<span class="lineNum">      54 </span>                : #if defined(__SUNPRO_CC) || defined(__SunOS)
<span class="lineNum">      55 </span>                : #  include &lt;stdio.h&gt;
<span class="lineNum">      56 </span>                : #  include &lt;stdarg.h&gt;
<span class="lineNum">      57 </span>                : using std::va_list;
<span class="lineNum">      58 </span>                : #endif
<span class="lineNum">      59 </span>                : 
<span class="lineNum">      60 </span>                : // to use vsnprintf 
<span class="lineNum">      61 </span>                : #if defined(__QNXNTO__) 
<span class="lineNum">      62 </span>                : #  include &lt;stdio.h&gt; 
<span class="lineNum">      63 </span>                : #endif
<span class="lineNum">      64 </span>                : 
<span class="lineNum">      65 </span>                : #if defined(_WIN32) &amp;&amp; !defined(BOOST_DISABLE_WIN32) &amp;&amp;                  \
<span class="lineNum">      66 </span>                :     (!defined(__COMO__) &amp;&amp; !defined(__MWERKS__) &amp;&amp; !defined(__GNUC__) || \
<span class="lineNum">      67 </span>                :      BOOST_WORKAROUND(__MWERKS__, &gt;= 0x3000))
<span class="lineNum">      68 </span>                : 
<span class="lineNum">      69 </span>                : #  define BOOST_SEH_BASED_SIGNAL_HANDLING
<span class="lineNum">      70 </span>                : 
<span class="lineNum">      71 </span>                : #  include &lt;windows.h&gt;
<span class="lineNum">      72 </span>                : 
<span class="lineNum">      73 </span>                : #  if defined(__MWERKS__) || (defined(_MSC_VER) &amp;&amp; !defined(UNDER_CE))
<span class="lineNum">      74 </span>                : #    include &lt;eh.h&gt;
<span class="lineNum">      75 </span>                : #  endif
<span class="lineNum">      76 </span>                : 
<span class="lineNum">      77 </span>                : #  if defined(__BORLANDC__) &amp;&amp; __BORLANDC__ &gt;= 0x560 || defined(__MWERKS__)
<span class="lineNum">      78 </span>                : #    include &lt;stdint.h&gt;
<span class="lineNum">      79 </span>                : #  endif
<span class="lineNum">      80 </span>                : 
<span class="lineNum">      81 </span>                : #  if defined(__BORLANDC__) &amp;&amp; __BORLANDC__ &lt; 0x560
<span class="lineNum">      82 </span>                :     typedef unsigned uintptr_t;
<span class="lineNum">      83 </span>                : #  endif
<span class="lineNum">      84 </span>                : 
<span class="lineNum">      85 </span>                : #  if BOOST_WORKAROUND(_MSC_VER,  &lt; 1300 ) || defined(UNDER_CE)
<span class="lineNum">      86 </span>                : typedef void* uintptr_t;
<span class="lineNum">      87 </span>                : #  endif
<span class="lineNum">      88 </span>                : 
<span class="lineNum">      89 </span>                : // for the FP control routines
<span class="lineNum">      90 </span>                : #include &lt;float.h&gt;
<span class="lineNum">      91 </span>                : 
<span class="lineNum">      92 </span>                : #ifndef EM_INVALID
<span class="lineNum">      93 </span>                : #define EM_INVALID _EM_INVALID
<span class="lineNum">      94 </span>                : #endif
<span class="lineNum">      95 </span>                : 
<span class="lineNum">      96 </span>                : #ifndef EM_DENORMAL
<span class="lineNum">      97 </span>                : #define EM_DENORMAL _EM_DENORMAL
<span class="lineNum">      98 </span>                : #endif
<span class="lineNum">      99 </span>                : 
<span class="lineNum">     100 </span>                : #ifndef EM_ZERODIVIDE
<span class="lineNum">     101 </span>                : #define EM_ZERODIVIDE _EM_ZERODIVIDE
<span class="lineNum">     102 </span>                : #endif
<span class="lineNum">     103 </span>                : 
<span class="lineNum">     104 </span>                : #ifndef EM_OVERFLOW
<span class="lineNum">     105 </span>                : #define EM_OVERFLOW _EM_OVERFLOW
<span class="lineNum">     106 </span>                : #endif
<span class="lineNum">     107 </span>                : 
<span class="lineNum">     108 </span>                : #ifndef EM_UNDERFLOW
<span class="lineNum">     109 </span>                : #define EM_UNDERFLOW _EM_UNDERFLOW
<span class="lineNum">     110 </span>                : #endif
<span class="lineNum">     111 </span>                : 
<span class="lineNum">     112 </span>                : #ifndef MCW_EM
<span class="lineNum">     113 </span>                : #define MCW_EM _MCW_EM
<span class="lineNum">     114 </span>                : #endif
<span class="lineNum">     115 </span>                : 
<span class="lineNum">     116 </span>                : #  if !defined(NDEBUG) &amp;&amp; defined(_MSC_VER) &amp;&amp; !defined(UNDER_CE)
<span class="lineNum">     117 </span>                : #    define BOOST_TEST_USE_DEBUG_MS_CRT
<span class="lineNum">     118 </span>                : #    include &lt;crtdbg.h&gt;
<span class="lineNum">     119 </span>                : #  endif
<span class="lineNum">     120 </span>                : 
<span class="lineNum">     121 </span>                : #  if !BOOST_WORKAROUND(_MSC_VER,  &gt;= 1400 ) || defined(UNDER_CE)
<span class="lineNum">     122 </span>                : 
<span class="lineNum">     123 </span>                : typedef void* _invalid_parameter_handler;
<span class="lineNum">     124 </span>                : 
<span class="lineNum">     125 </span>                : inline _invalid_parameter_handler
<span class="lineNum">     126 </span>                : _set_invalid_parameter_handler( _invalid_parameter_handler arg )
<span class="lineNum">     127 </span>                : {
<span class="lineNum">     128 </span>                :     return arg;
<span class="lineNum">     129 </span>                : }
<span class="lineNum">     130 </span>                : 
<span class="lineNum">     131 </span>                : #  endif
<span class="lineNum">     132 </span>                : 
<span class="lineNum">     133 </span>                : #  if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x0564)) || defined(UNDER_CE)
<span class="lineNum">     134 </span>                : 
<span class="lineNum">     135 </span>                : namespace { void _set_se_translator( void* ) {} }
<span class="lineNum">     136 </span>                : 
<span class="lineNum">     137 </span>                : #  endif
<span class="lineNum">     138 </span>                : 
<span class="lineNum">     139 </span>                : #elif defined(BOOST_HAS_SIGACTION)
<span class="lineNum">     140 </span>                : 
<span class="lineNum">     141 </span>                : #  define BOOST_SIGACTION_BASED_SIGNAL_HANDLING
<span class="lineNum">     142 </span>                : 
<span class="lineNum">     143 </span>                : #  include &lt;unistd.h&gt;
<span class="lineNum">     144 </span>                : #  include &lt;signal.h&gt;
<span class="lineNum">     145 </span>                : #  include &lt;setjmp.h&gt;
<span class="lineNum">     146 </span>                : 
<span class="lineNum">     147 </span>                : #  if !defined(__CYGWIN__) &amp;&amp; !defined(__QNXNTO__)
<span class="lineNum">     148 </span>                : #   define BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     149 </span>                : #  endif
<span class="lineNum">     150 </span>                : 
<span class="lineNum">     151 </span>                : #  if defined(SIGPOLL) &amp;&amp; !defined(__CYGWIN__)                              &amp;&amp; \
<span class="lineNum">     152 </span>                :       !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))  &amp;&amp; \
<span class="lineNum">     153 </span>                :       !defined(__NetBSD__)                                                  &amp;&amp; \
<span class="lineNum">     154 </span>                :       !defined(__QNXNTO__)
<span class="lineNum">     155 </span>                : #    define BOOST_TEST_CATCH_SIGPOLL
<span class="lineNum">     156 </span>                : #  endif
<span class="lineNum">     157 </span>                : 
<span class="lineNum">     158 </span>                : #  ifdef BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     159 </span>                : #    define BOOST_TEST_ALT_STACK_SIZE SIGSTKSZ
<span class="lineNum">     160 </span>                : #  endif
<span class="lineNum">     161 </span>                : 
<span class="lineNum">     162 </span>                : #else
<span class="lineNum">     163 </span>                : 
<span class="lineNum">     164 </span>                : #  define BOOST_NO_SIGNAL_HANDLING
<span class="lineNum">     165 </span>                : 
<span class="lineNum">     166 </span>                : #endif
<span class="lineNum">     167 </span>                : 
<span class="lineNum">     168 </span>                : #ifndef UNDER_CE
<span class="lineNum">     169 </span>                : #include &lt;errno.h&gt;
<span class="lineNum">     170 </span>                : #endif
<span class="lineNum">     171 </span>                : 
<span class="lineNum">     172 </span>                : #include &lt;boost/test/detail/suppress_warnings.hpp&gt;
<span class="lineNum">     173 </span>                : 
<span class="lineNum">     174 </span>                : //____________________________________________________________________________//
<span class="lineNum">     175 </span>                : 
<span class="lineNum">     176 </span>                : namespace boost {
<span class="lineNum">     177 </span>                : 
<span class="lineNum">     178 </span>                : // ************************************************************************** //
<span class="lineNum">     179 </span>                : // **************                  report_error                ************** //
<span class="lineNum">     180 </span>                : // ************************************************************************** //
<span class="lineNum">     181 </span>                : 
<span class="lineNum">     182 </span>                : namespace detail {
<span class="lineNum">     183 </span>                : 
<span class="lineNum">     184 </span>                : #ifdef __BORLANDC__
<span class="lineNum">     185 </span>                : #  define BOOST_TEST_VSNPRINTF( a1, a2, a3, a4 ) std::vsnprintf( (a1), (a2), (a3), (a4) )
<span class="lineNum">     186 </span>                : #elif BOOST_WORKAROUND(_MSC_VER, &lt;= 1310) || \
<span class="lineNum">     187 </span>                :       BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3000)) || \
<span class="lineNum">     188 </span>                :       defined(UNDER_CE)
<span class="lineNum">     189 </span>                : #  define BOOST_TEST_VSNPRINTF( a1, a2, a3, a4 ) _vsnprintf( (a1), (a2), (a3), (a4) )
<span class="lineNum">     190 </span>                : #else
<span class="lineNum">     191 </span>                : #  define BOOST_TEST_VSNPRINTF( a1, a2, a3, a4 ) vsnprintf( (a1), (a2), (a3), (a4) )
<span class="lineNum">     192 </span>                : #endif
<span class="lineNum">     193 </span>                : 
<span class="lineNum">     194 </span>                : static void
<span class="lineNum">     195 </span><span class="lineNoCov">              0 : report_error( execution_exception::error_code ec, char const* format, ... )</span>
<span class="lineNum">     196 </span>                : {
<span class="lineNum">     197 </span>                :     static const int REPORT_ERROR_BUFFER_SIZE = 512;
<span class="lineNum">     198 </span>                :     static char buf[REPORT_ERROR_BUFFER_SIZE];
<span class="lineNum">     199 </span>                : 
<span class="lineNum">     200 </span>                :     va_list args;
<span class="lineNum">     201 </span><span class="lineNoCov">              0 :     va_start( args, format );</span>
<span class="lineNum">     202 </span>                : 
<span class="lineNum">     203 </span><span class="lineNoCov">              0 :     BOOST_TEST_VSNPRINTF( buf, sizeof(buf), format, args );</span>
<span class="lineNum">     204 </span><span class="lineNoCov">              0 :     va_end( args );</span>
<span class="lineNum">     205 </span>                : 
<span class="lineNum">     206 </span><span class="lineNoCov">              0 :     throw execution_exception( ec, buf );</span>
<span class="lineNum">     207 </span>                : }
<span class="lineNum">     208 </span>                : 
<span class="lineNum">     209 </span>                : //____________________________________________________________________________//
<span class="lineNum">     210 </span>                : 
<span class="lineNum">     211 </span>                : template&lt;typename Tr,typename Functor&gt;
<span class="lineNum">     212 </span>                : inline int
<span class="lineNum">     213 </span><span class="lineCov">             15 : do_invoke( Tr const&amp; tr, Functor const&amp; F )</span>
<span class="lineNum">     214 </span>                : {
<span class="lineNum">     215 </span><span class="lineCov">             15 :     return tr ? (*tr)( F ) : F();</span>
<span class="lineNum">     216 </span>                : }
<span class="lineNum">     217 </span>                : 
<span class="lineNum">     218 </span>                : //____________________________________________________________________________//
<span class="lineNum">     219 </span>                : 
<span class="lineNum">     220 </span>                : } // namespace detail
<span class="lineNum">     221 </span>                : 
<span class="lineNum">     222 </span>                : #if defined(BOOST_SIGACTION_BASED_SIGNAL_HANDLING)
<span class="lineNum">     223 </span>                : 
<span class="lineNum">     224 </span>                : // ************************************************************************** //
<span class="lineNum">     225 </span>                : // **************       Sigaction based signal handling        ************** //
<span class="lineNum">     226 </span>                : // ************************************************************************** //
<span class="lineNum">     227 </span>                : 
<span class="lineNum">     228 </span>                : namespace detail {
<span class="lineNum">     229 </span>                : 
<span class="lineNum">     230 </span>                : // ************************************************************************** //
<span class="lineNum">     231 </span>                : // **************    boost::detail::system_signal_exception    ************** //
<span class="lineNum">     232 </span>                : // ************************************************************************** //
<span class="lineNum">     233 </span>                : 
<span class="lineNum">     234 </span>                : class system_signal_exception {
<span class="lineNum">     235 </span>                : public:
<span class="lineNum">     236 </span>                :     // Constructor
<span class="lineNum">     237 </span><span class="lineCov">             15 :     system_signal_exception()</span>
<span class="lineNum">     238 </span>                :     : m_sig_info( 0 )
<span class="lineNum">     239 </span><span class="lineCov">             15 :     , m_context( 0 )</span>
<span class="lineNum">     240 </span><span class="lineCov">             15 :     {}</span>
<span class="lineNum">     241 </span>                : 
<span class="lineNum">     242 </span>                :     // Access methods
<span class="lineNum">     243 </span><span class="lineNoCov">              0 :     void        operator()( siginfo_t* i, void* c )</span>
<span class="lineNum">     244 </span>                :     {
<span class="lineNum">     245 </span><span class="lineNoCov">              0 :         m_sig_info  = i;</span>
<span class="lineNum">     246 </span><span class="lineNoCov">              0 :         m_context   = c;</span>
<span class="lineNum">     247 </span><span class="lineNoCov">              0 :     }</span>
<span class="lineNum">     248 </span>                :     void        report() const;
<span class="lineNum">     249 </span>                : 
<span class="lineNum">     250 </span>                : private:
<span class="lineNum">     251 </span>                :     // Data members
<span class="lineNum">     252 </span>                :     siginfo_t*  m_sig_info; // system signal detailed info
<span class="lineNum">     253 </span>                :     void*       m_context;  // signal context
<span class="lineNum">     254 </span>                : };
<span class="lineNum">     255 </span>                : 
<span class="lineNum">     256 </span>                : //____________________________________________________________________________//
<span class="lineNum">     257 </span>                : 
<span class="lineNum">     258 </span>                : void
<span class="lineNum">     259 </span><span class="lineNoCov">              0 : system_signal_exception::report() const</span>
<span class="lineNum">     260 </span>                : {
<span class="lineNum">     261 </span><span class="lineNoCov">              0 :     if( !m_sig_info )</span>
<span class="lineNum">     262 </span><span class="lineNoCov">              0 :         return; // no error actually occur?</span>
<span class="lineNum">     263 </span>                : 
<span class="lineNum">     264 </span><span class="lineNoCov">              0 :     switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     265 </span>                :     case SI_USER:
<span class="lineNum">     266 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     267 </span>                :                       &quot;signal: generated by kill() (or family); uid=%d; pid=%d&quot;,
<span class="lineNum">     268 </span><span class="lineNoCov">              0 :                       (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_pid );</span>
<span class="lineNum">     269 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     270 </span>                :     case SI_QUEUE:
<span class="lineNum">     271 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     272 </span><span class="lineNoCov">              0 :                       &quot;signal: sent by sigqueue()&quot; );</span>
<span class="lineNum">     273 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     274 </span>                :     case SI_TIMER:
<span class="lineNum">     275 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     276 </span><span class="lineNoCov">              0 :                       &quot;signal: the expiration of a timer set by timer_settimer()&quot; );</span>
<span class="lineNum">     277 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     278 </span>                :     case SI_ASYNCIO:
<span class="lineNum">     279 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     280 </span><span class="lineNoCov">              0 :                       &quot;signal: generated by the completion of an asynchronous I/O request&quot; );</span>
<span class="lineNum">     281 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     282 </span>                :     case SI_MESGQ:
<span class="lineNum">     283 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     284 </span><span class="lineNoCov">              0 :                       &quot;signal: generated by the the arrival of a message on an empty message queue&quot; );</span>
<span class="lineNum">     285 </span>                :         break;
<span class="lineNum">     286 </span>                :     default:
<span class="lineNum">     287 </span>                :         break;
<span class="lineNum">     288 </span>                :     }
<span class="lineNum">     289 </span>                : 
<span class="lineNum">     290 </span><span class="lineNoCov">              0 :     switch( m_sig_info-&gt;si_signo ) {</span>
<span class="lineNum">     291 </span>                :     case SIGILL:
<span class="lineNum">     292 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     293 </span>                :         case ILL_ILLOPC:
<span class="lineNum">     294 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     295 </span>                :                           &quot;signal: illegal opcode; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     296 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     297 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     298 </span>                :         case ILL_ILLOPN:
<span class="lineNum">     299 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     300 </span>                :                           &quot;signal: illegal operand; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     301 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     302 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     303 </span>                :         case ILL_ILLADR:
<span class="lineNum">     304 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     305 </span>                :                           &quot;signal: illegal addressing mode; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     306 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     307 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     308 </span>                :         case ILL_ILLTRP:
<span class="lineNum">     309 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     310 </span>                :                           &quot;signal: illegal trap; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     311 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     312 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     313 </span>                :         case ILL_PRVOPC:
<span class="lineNum">     314 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     315 </span>                :                           &quot;signal: privileged opcode; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     316 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     317 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     318 </span>                :         case ILL_PRVREG:
<span class="lineNum">     319 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     320 </span>                :                           &quot;signal: privileged register; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     321 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     322 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     323 </span>                :         case ILL_COPROC:
<span class="lineNum">     324 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     325 </span>                :                           &quot;signal: co-processor error; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     326 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     327 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     328 </span>                :         case ILL_BADSTK:
<span class="lineNum">     329 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     330 </span>                :                           &quot;signal: internal stack error; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     331 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     332 </span>                :             break;
<span class="lineNum">     333 </span>                :         }
<span class="lineNum">     334 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     335 </span>                : 
<span class="lineNum">     336 </span>                :     case SIGFPE:
<span class="lineNum">     337 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     338 </span>                :         case FPE_INTDIV:
<span class="lineNum">     339 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     340 </span>                :                           &quot;signal: integer divide by zero; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     341 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     342 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     343 </span>                :         case FPE_INTOVF:
<span class="lineNum">     344 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     345 </span>                :                           &quot;signal: integer overflow; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     346 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     347 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     348 </span>                :         case FPE_FLTDIV:
<span class="lineNum">     349 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     350 </span>                :                           &quot;signal: floating point divide by zero; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     351 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     352 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     353 </span>                :         case FPE_FLTOVF:
<span class="lineNum">     354 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     355 </span>                :                           &quot;signal: floating point overflow; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     356 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     357 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     358 </span>                :         case FPE_FLTUND:
<span class="lineNum">     359 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     360 </span>                :                           &quot;signal: floating point underflow; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     361 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     362 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     363 </span>                :         case FPE_FLTRES:
<span class="lineNum">     364 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     365 </span>                :                           &quot;signal: floating point inexact result; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     366 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     367 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     368 </span>                :         case FPE_FLTINV:
<span class="lineNum">     369 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     370 </span>                :                           &quot;signal: invalid floating point operation; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     371 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     372 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     373 </span>                :         case FPE_FLTSUB:
<span class="lineNum">     374 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     375 </span>                :                           &quot;signal: subscript out of range; address of failing instruction: 0x%08lx&quot;,
<span class="lineNum">     376 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     377 </span>                :             break;
<span class="lineNum">     378 </span>                :         }
<span class="lineNum">     379 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     380 </span>                : 
<span class="lineNum">     381 </span>                :     case SIGSEGV:
<span class="lineNum">     382 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     383 </span>                :         case SEGV_MAPERR:
<span class="lineNum">     384 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     385 </span>                :                           &quot;memory access violation at address: 0x%08lx: no mapping at fault address&quot;,
<span class="lineNum">     386 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     387 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     388 </span>                :         case SEGV_ACCERR:
<span class="lineNum">     389 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     390 </span>                :                           &quot;memory access violation at address: 0x%08lx: invalid permissions&quot;,
<span class="lineNum">     391 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     392 </span>                :             break;
<span class="lineNum">     393 </span>                :         }
<span class="lineNum">     394 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     395 </span>                : 
<span class="lineNum">     396 </span>                :     case SIGBUS:
<span class="lineNum">     397 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     398 </span>                :         case BUS_ADRALN:
<span class="lineNum">     399 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     400 </span>                :                           &quot;memory access violation at address: 0x%08lx: invalid address alignment&quot;,
<span class="lineNum">     401 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     402 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     403 </span>                :         case BUS_ADRERR:
<span class="lineNum">     404 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     405 </span>                :                           &quot;memory access violation at address: 0x%08lx: non-existent physical address&quot;,
<span class="lineNum">     406 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     407 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     408 </span>                :         case BUS_OBJERR:
<span class="lineNum">     409 </span>                :             report_error( execution_exception::system_fatal_error,
<span class="lineNum">     410 </span>                :                           &quot;memory access violation at address: 0x%08lx: object specific hardware error&quot;,
<span class="lineNum">     411 </span><span class="lineNoCov">              0 :                           m_sig_info-&gt;si_addr );</span>
<span class="lineNum">     412 </span>                :             break;
<span class="lineNum">     413 </span>                :         }
<span class="lineNum">     414 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     415 </span>                : 
<span class="lineNum">     416 </span>                :     case SIGCHLD:
<span class="lineNum">     417 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     418 </span>                :         case CLD_EXITED:
<span class="lineNum">     419 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     420 </span>                :                           &quot;child has exited; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     421 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     422 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     423 </span>                :         case CLD_KILLED:
<span class="lineNum">     424 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     425 </span>                :                           &quot;child was killed; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     426 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     427 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     428 </span>                :         case CLD_DUMPED:
<span class="lineNum">     429 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     430 </span>                :                           &quot;child terminated abnormally; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     431 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     432 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     433 </span>                :         case CLD_TRAPPED:
<span class="lineNum">     434 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     435 </span>                :                           &quot;traced child has trapped; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     436 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     437 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     438 </span>                :         case CLD_STOPPED:
<span class="lineNum">     439 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     440 </span>                :                           &quot;child has stopped; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     441 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     442 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     443 </span>                :         case CLD_CONTINUED:
<span class="lineNum">     444 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     445 </span>                :                           &quot;stopped child had continued; pid: %d; uid: %d; exit value: %d&quot;,
<span class="lineNum">     446 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_pid, (int)m_sig_info-&gt;si_uid, (int)m_sig_info-&gt;si_status );</span>
<span class="lineNum">     447 </span>                :             break;
<span class="lineNum">     448 </span>                :         }
<span class="lineNum">     449 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     450 </span>                : 
<span class="lineNum">     451 </span>                : #if defined(BOOST_TEST_CATCH_SIGPOLL)
<span class="lineNum">     452 </span>                : 
<span class="lineNum">     453 </span>                :     case SIGPOLL:
<span class="lineNum">     454 </span><span class="lineNoCov">              0 :         switch( m_sig_info-&gt;si_code ) {</span>
<span class="lineNum">     455 </span>                :         case POLL_IN:
<span class="lineNum">     456 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     457 </span>                :                           &quot;data input available; band event %d&quot;,
<span class="lineNum">     458 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_band );</span>
<span class="lineNum">     459 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     460 </span>                :         case POLL_OUT:
<span class="lineNum">     461 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     462 </span>                :                           &quot;output buffers available; band event %d&quot;,
<span class="lineNum">     463 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_band );</span>
<span class="lineNum">     464 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     465 </span>                :         case POLL_MSG:
<span class="lineNum">     466 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     467 </span>                :                           &quot;input message available; band event %d&quot;,
<span class="lineNum">     468 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_band );</span>
<span class="lineNum">     469 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     470 </span>                :         case POLL_ERR:
<span class="lineNum">     471 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     472 </span>                :                           &quot;i/o error; band event %d&quot;,
<span class="lineNum">     473 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_band );</span>
<span class="lineNum">     474 </span><span class="lineNoCov">              0 :             break;</span>
<span class="lineNum">     475 </span>                :         case POLL_PRI:
<span class="lineNum">     476 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     477 </span>                :                           &quot;high priority input available; band event %d&quot;,
<span class="lineNum">     478 </span><span class="lineNoCov">              0 :                           (int)m_sig_info-&gt;si_band );</span>
<span class="lineNum">     479 </span>                :             break;
<span class="lineNum">     480 </span>                : #if defined(POLL_ERR) &amp;&amp; defined(POLL_HUP) &amp;&amp; (POLL_ERR - POLL_HUP)
<span class="lineNum">     481 </span>                :         case POLL_HUP:
<span class="lineNum">     482 </span>                :             report_error( execution_exception::system_error,
<span class="lineNum">     483 </span>                :                           &quot;device disconnected; band event %d&quot;,
<span class="lineNum">     484 </span>                :                           (int)m_sig_info-&gt;si_band );
<span class="lineNum">     485 </span>                :             break;
<span class="lineNum">     486 </span>                : #endif
<span class="lineNum">     487 </span>                :         }
<span class="lineNum">     488 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     489 </span>                : 
<span class="lineNum">     490 </span>                : #endif
<span class="lineNum">     491 </span>                : 
<span class="lineNum">     492 </span>                :     case SIGABRT:
<span class="lineNum">     493 </span>                :         report_error( execution_exception::system_error,
<span class="lineNum">     494 </span><span class="lineNoCov">              0 :                       &quot;signal: SIGABRT (application abort requested)&quot; );</span>
<span class="lineNum">     495 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     496 </span>                : 
<span class="lineNum">     497 </span>                :     case SIGALRM:
<span class="lineNum">     498 </span>                :         report_error( execution_exception::timeout_error,
<span class="lineNum">     499 </span><span class="lineNoCov">              0 :                       &quot;signal: SIGALRM (timeout while executing function)&quot; );</span>
<span class="lineNum">     500 </span><span class="lineNoCov">              0 :         break;</span>
<span class="lineNum">     501 </span>                : 
<span class="lineNum">     502 </span>                :     default:
<span class="lineNum">     503 </span><span class="lineNoCov">              0 :         report_error( execution_exception::system_error, &quot;unrecognized signal&quot; );</span>
<span class="lineNum">     504 </span>                :     }
<span class="lineNum">     505 </span>                : }
<span class="lineNum">     506 </span>                : 
<span class="lineNum">     507 </span>                : //____________________________________________________________________________//
<span class="lineNum">     508 </span>                : 
<span class="lineNum">     509 </span>                : // ************************************************************************** //
<span class="lineNum">     510 </span>                : // **************         boost::detail::signal_action         ************** //
<span class="lineNum">     511 </span>                : // ************************************************************************** //
<span class="lineNum">     512 </span>                : 
<span class="lineNum">     513 </span>                : // Forward declaration
<span class="lineNum">     514 </span>                : extern &quot;C&quot; {
<span class="lineNum">     515 </span>                : static void execution_monitor_jumping_signal_handler( int sig, siginfo_t* info, void* context );
<span class="lineNum">     516 </span>                : static void execution_monitor_attaching_signal_handler( int sig, siginfo_t* info, void* context );
<span class="lineNum">     517 </span>                : }
<span class="lineNum">     518 </span>                : 
<span class="lineNum">     519 </span>                : class signal_action {
<span class="lineNum">     520 </span>                :     typedef struct sigaction* sigaction_ptr;
<span class="lineNum">     521 </span>                : public:
<span class="lineNum">     522 </span>                :     //Constructor
<span class="lineNum">     523 </span>                :     explicit            signal_action( int sig, bool install, bool attach_dbg, char* alt_stack );
<span class="lineNum">     524 </span>                :     ~signal_action();
<span class="lineNum">     525 </span>                : 
<span class="lineNum">     526 </span>                : private:
<span class="lineNum">     527 </span>                :     // Data members
<span class="lineNum">     528 </span>                :     int                 m_sig;
<span class="lineNum">     529 </span>                :     bool                m_installed;
<span class="lineNum">     530 </span>                :     struct sigaction    m_new_action;
<span class="lineNum">     531 </span>                :     struct sigaction    m_old_action;
<span class="lineNum">     532 </span>                : };
<span class="lineNum">     533 </span>                : 
<span class="lineNum">     534 </span>                : //____________________________________________________________________________//
<span class="lineNum">     535 </span>                : 
<span class="lineNum">     536 </span><span class="lineCov">            120 : signal_action::signal_action( int sig, bool install, bool attach_dbg, char* alt_stack )</span>
<span class="lineNum">     537 </span>                : : m_sig( sig )
<span class="lineNum">     538 </span><span class="lineCov">            120 : , m_installed( install )</span>
<span class="lineNum">     539 </span>                : {
<span class="lineNum">     540 </span><span class="lineCov">            120 :     if( !install )</span>
<span class="lineNum">     541 </span><span class="lineCov">             15 :         return;</span>
<span class="lineNum">     542 </span>                : 
<span class="lineNum">     543 </span><span class="lineCov">            105 :     std::memset( &amp;m_new_action, 0, sizeof(struct sigaction) );</span>
<span class="lineNum">     544 </span>                : 
<span class="lineNum">     545 </span><span class="lineCov">            105 :     BOOST_TEST_SYS_ASSERT( ::sigaction( m_sig , sigaction_ptr(), &amp;m_new_action ) != -1 );</span>
<span class="lineNum">     546 </span>                : 
<span class="lineNum">     547 </span><span class="lineCov">            105 :     if( m_new_action.sa_sigaction || m_new_action.sa_handler ) {</span>
<span class="lineNum">     548 </span><span class="lineNoCov">              0 :         m_installed = false;</span>
<span class="lineNum">     549 </span><span class="lineNoCov">              0 :         return;</span>
<span class="lineNum">     550 </span>                :     }
<span class="lineNum">     551 </span>                : 
<span class="lineNum">     552 </span><span class="lineCov">            105 :     m_new_action.sa_flags     |= SA_SIGINFO;</span>
<span class="lineNum">     553 </span>                :     m_new_action.sa_sigaction  = attach_dbg ? &amp;execution_monitor_attaching_signal_handler
<span class="lineNum">     554 </span><span class="lineCov">            105 :                                             : &amp;execution_monitor_jumping_signal_handler;</span>
<span class="lineNum">     555 </span><span class="lineCov">            105 :     BOOST_TEST_SYS_ASSERT( sigemptyset( &amp;m_new_action.sa_mask ) != -1 );</span>
<span class="lineNum">     556 </span>                : 
<span class="lineNum">     557 </span>                : #ifdef BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     558 </span><span class="lineCov">            105 :     if( alt_stack )</span>
<span class="lineNum">     559 </span><span class="lineCov">            105 :         m_new_action.sa_flags |= SA_ONSTACK;</span>
<span class="lineNum">     560 </span>                : #endif
<span class="lineNum">     561 </span>                : 
<span class="lineNum">     562 </span><span class="lineCov">            105 :     BOOST_TEST_SYS_ASSERT( ::sigaction( m_sig, &amp;m_new_action, &amp;m_old_action ) != -1 );</span>
<span class="lineNum">     563 </span>                : }
<span class="lineNum">     564 </span>                : 
<span class="lineNum">     565 </span>                : //____________________________________________________________________________//
<span class="lineNum">     566 </span>                : 
<span class="lineNum">     567 </span><span class="lineCov">            120 : signal_action::~signal_action()</span>
<span class="lineNum">     568 </span>                : {
<span class="lineNum">     569 </span><span class="lineCov">            120 :     if( m_installed )</span>
<span class="lineNum">     570 </span><span class="lineCov">            105 :         ::sigaction( m_sig, &amp;m_old_action , sigaction_ptr() );</span>
<span class="lineNum">     571 </span><span class="lineCov">            120 : }</span>
<span class="lineNum">     572 </span>                : 
<span class="lineNum">     573 </span>                : //____________________________________________________________________________//
<span class="lineNum">     574 </span>                : 
<span class="lineNum">     575 </span>                : // ************************************************************************** //
<span class="lineNum">     576 </span>                : // **************        boost::detail::signal_handler         ************** //
<span class="lineNum">     577 </span>                : // ************************************************************************** //
<span class="lineNum">     578 </span>                : 
<span class="lineNum">     579 </span>                : class signal_handler {
<span class="lineNum">     580 </span>                : public:
<span class="lineNum">     581 </span>                :     // Constructor
<span class="lineNum">     582 </span>                :     explicit signal_handler( bool catch_system_errors, int timeout, bool attach_dbg, char* alt_stack );
<span class="lineNum">     583 </span>                : 
<span class="lineNum">     584 </span>                :     // Destructor
<span class="lineNum">     585 </span>                :     ~signal_handler();
<span class="lineNum">     586 </span>                : 
<span class="lineNum">     587 </span>                :     // access methods
<span class="lineNum">     588 </span><span class="lineCov">             15 :     static sigjmp_buf&amp;      jump_buffer()</span>
<span class="lineNum">     589 </span>                :     {
<span class="lineNum">     590 </span><span class="lineCov">             15 :         assert( !!s_active_handler );</span>
<span class="lineNum">     591 </span>                : 
<span class="lineNum">     592 </span><span class="lineCov">             15 :         return s_active_handler-&gt;m_sigjmp_buf;</span>
<span class="lineNum">     593 </span>                :     }
<span class="lineNum">     594 </span>                : 
<span class="lineNum">     595 </span><span class="lineNoCov">              0 :     static system_signal_exception&amp;  sys_sig()</span>
<span class="lineNum">     596 </span>                :     {
<span class="lineNum">     597 </span><span class="lineNoCov">              0 :         assert( !!s_active_handler );</span>
<span class="lineNum">     598 </span>                : 
<span class="lineNum">     599 </span><span class="lineNoCov">              0 :         return s_active_handler-&gt;m_sys_sig;</span>
<span class="lineNum">     600 </span>                :     }
<span class="lineNum">     601 </span>                : 
<span class="lineNum">     602 </span>                : private:
<span class="lineNum">     603 </span>                :     // Data members
<span class="lineNum">     604 </span>                :     signal_handler*         m_prev_handler;
<span class="lineNum">     605 </span>                :     int                     m_timeout;
<span class="lineNum">     606 </span>                : 
<span class="lineNum">     607 </span>                :     signal_action           m_ILL_action;
<span class="lineNum">     608 </span>                :     signal_action           m_FPE_action;
<span class="lineNum">     609 </span>                :     signal_action           m_SEGV_action;
<span class="lineNum">     610 </span>                :     signal_action           m_BUS_action;
<span class="lineNum">     611 </span>                :     signal_action           m_CHLD_action;
<span class="lineNum">     612 </span>                : #ifdef BOOST_TEST_CATCH_SIGPOLL
<span class="lineNum">     613 </span>                :     signal_action           m_POLL_action;
<span class="lineNum">     614 </span>                : #endif
<span class="lineNum">     615 </span>                :     signal_action           m_ABRT_action;
<span class="lineNum">     616 </span>                :     signal_action           m_ALRM_action;
<span class="lineNum">     617 </span>                : 
<span class="lineNum">     618 </span>                :     sigjmp_buf              m_sigjmp_buf;
<span class="lineNum">     619 </span>                :     system_signal_exception m_sys_sig;
<span class="lineNum">     620 </span>                : 
<span class="lineNum">     621 </span>                :     static signal_handler*  s_active_handler;
<span class="lineNum">     622 </span>                : };
<span class="lineNum">     623 </span>                : 
<span class="lineNum">     624 </span>                : // !! need to be placed in thread specific storage
<span class="lineNum">     625 </span>                : typedef signal_handler* signal_handler_ptr;
<span class="lineNum">     626 </span>                : signal_handler* signal_handler::s_active_handler = signal_handler_ptr();
<span class="lineNum">     627 </span>                : 
<span class="lineNum">     628 </span>                : //____________________________________________________________________________//
<span class="lineNum">     629 </span>                : 
<span class="lineNum">     630 </span><span class="lineCov">             15 : signal_handler::signal_handler( bool catch_system_errors, int timeout, bool attach_dbg, char* alt_stack )</span>
<span class="lineNum">     631 </span>                : : m_prev_handler( s_active_handler )
<span class="lineNum">     632 </span>                : , m_timeout( timeout )
<span class="lineNum">     633 </span>                : , m_ILL_action ( SIGILL , catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     634 </span>                : , m_FPE_action ( SIGFPE , catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     635 </span>                : , m_SEGV_action( SIGSEGV, catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     636 </span>                : , m_BUS_action ( SIGBUS , catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     637 </span>                : , m_CHLD_action( SIGCHLD, catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     638 </span>                : #ifdef BOOST_TEST_CATCH_SIGPOLL
<span class="lineNum">     639 </span>                : , m_POLL_action( SIGPOLL, catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     640 </span>                : #endif
<span class="lineNum">     641 </span>                : , m_ABRT_action( SIGABRT, catch_system_errors, attach_dbg, alt_stack )
<span class="lineNum">     642 </span><span class="lineCov">             15 : , m_ALRM_action( SIGALRM, timeout &gt; 0        , attach_dbg, alt_stack )</span>
<span class="lineNum">     643 </span>                : {
<span class="lineNum">     644 </span><span class="lineCov">             15 :     s_active_handler = this;</span>
<span class="lineNum">     645 </span>                : 
<span class="lineNum">     646 </span><span class="lineCov">             15 :     if( m_timeout &gt; 0 ) {</span>
<span class="lineNum">     647 </span><span class="lineNoCov">              0 :         ::alarm( 0 );</span>
<span class="lineNum">     648 </span><span class="lineNoCov">              0 :         ::alarm( timeout );</span>
<span class="lineNum">     649 </span>                :     }
<span class="lineNum">     650 </span>                : 
<span class="lineNum">     651 </span>                : #ifdef BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     652 </span><span class="lineCov">             15 :     if( alt_stack ) {</span>
<span class="lineNum">     653 </span>                :         stack_t sigstk;
<span class="lineNum">     654 </span><span class="lineCov">             15 :         std::memset( &amp;sigstk, 0, sizeof(stack_t) );</span>
<span class="lineNum">     655 </span>                : 
<span class="lineNum">     656 </span><span class="lineCov">             15 :         BOOST_TEST_SYS_ASSERT( ::sigaltstack( 0, &amp;sigstk ) != -1 );</span>
<span class="lineNum">     657 </span>                : 
<span class="lineNum">     658 </span><span class="lineCov">             15 :         if( sigstk.ss_flags &amp; SS_DISABLE ) {</span>
<span class="lineNum">     659 </span><span class="lineCov">             15 :             sigstk.ss_sp    = alt_stack;</span>
<span class="lineNum">     660 </span><span class="lineCov">             15 :             sigstk.ss_size  = BOOST_TEST_ALT_STACK_SIZE;</span>
<span class="lineNum">     661 </span><span class="lineCov">             15 :             sigstk.ss_flags = 0;</span>
<span class="lineNum">     662 </span><span class="lineCov">             15 :             BOOST_TEST_SYS_ASSERT( ::sigaltstack( &amp;sigstk, 0 ) != -1 );</span>
<span class="lineNum">     663 </span>                :         }
<span class="lineNum">     664 </span>                :     }
<span class="lineNum">     665 </span>                : #endif
<span class="lineNum">     666 </span><span class="lineCov">             15 : }</span>
<span class="lineNum">     667 </span>                : 
<span class="lineNum">     668 </span>                : //____________________________________________________________________________//
<span class="lineNum">     669 </span>                : 
<span class="lineNum">     670 </span><span class="lineCov">             15 : signal_handler::~signal_handler()</span>
<span class="lineNum">     671 </span>                : {
<span class="lineNum">     672 </span><span class="lineCov">             15 :     assert( s_active_handler == this );</span>
<span class="lineNum">     673 </span>                : 
<span class="lineNum">     674 </span><span class="lineCov">             15 :     if( m_timeout &gt; 0 )</span>
<span class="lineNum">     675 </span><span class="lineNoCov">              0 :         ::alarm( 0 );</span>
<span class="lineNum">     676 </span>                : 
<span class="lineNum">     677 </span>                : #ifdef BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     678 </span><span class="lineCov">             15 :     stack_t sigstk = {};</span>
<span class="lineNum">     679 </span>                : 
<span class="lineNum">     680 </span><span class="lineCov">             15 :     sigstk.ss_size  = MINSIGSTKSZ;</span>
<span class="lineNum">     681 </span><span class="lineCov">             15 :     sigstk.ss_flags = SS_DISABLE;</span>
<span class="lineNum">     682 </span><span class="lineCov">             15 :     BOOST_TEST_SYS_ASSERT( ::sigaltstack( &amp;sigstk, 0 ) != -1 );</span>
<span class="lineNum">     683 </span>                : #endif
<span class="lineNum">     684 </span>                : 
<span class="lineNum">     685 </span><span class="lineCov">             15 :     s_active_handler = m_prev_handler;</span>
<span class="lineNum">     686 </span><span class="lineCov">             15 : }</span>
<span class="lineNum">     687 </span>                : 
<span class="lineNum">     688 </span>                : //____________________________________________________________________________//
<span class="lineNum">     689 </span>                : 
<span class="lineNum">     690 </span>                : // ************************************************************************** //
<span class="lineNum">     691 </span>                : // **************       execution_monitor_signal_handler       ************** //
<span class="lineNum">     692 </span>                : // ************************************************************************** //
<span class="lineNum">     693 </span>                : 
<span class="lineNum">     694 </span>                : extern &quot;C&quot; {
<span class="lineNum">     695 </span>                : 
<span class="lineNum">     696 </span><span class="lineNoCov">              0 : static bool ignore_sigchild( siginfo_t* info )</span>
<span class="lineNum">     697 </span>                : {
<span class="lineNum">     698 </span>                :     return info-&gt;si_signo == SIGCHLD &amp;&amp; info-&gt;si_code == CLD_EXITED 
<span class="lineNum">     699 </span>                : #ifdef BOOST_TEST_IGNORE_NON_ZERO_CHILD_CODE
<span class="lineNum">     700 </span>                :             ;
<span class="lineNum">     701 </span>                : #else
<span class="lineNum">     702 </span><span class="lineNoCov">              0 :             &amp;&amp; (int)info-&gt;si_status == 0;</span>
<span class="lineNum">     703 </span>                : #endif
<span class="lineNum">     704 </span>                : }
<span class="lineNum">     705 </span>                : 
<span class="lineNum">     706 </span>                : //____________________________________________________________________________//
<span class="lineNum">     707 </span>                : 
<span class="lineNum">     708 </span><span class="lineNoCov">              0 : static void execution_monitor_jumping_signal_handler( int sig, siginfo_t* info, void* context )</span>
<span class="lineNum">     709 </span>                : {
<span class="lineNum">     710 </span><span class="lineNoCov">              0 :     if( ignore_sigchild( info ) )</span>
<span class="lineNum">     711 </span><span class="lineNoCov">              0 :         return;</span>
<span class="lineNum">     712 </span>                : 
<span class="lineNum">     713 </span><span class="lineNoCov">              0 :     signal_handler::sys_sig()( info, context );</span>
<span class="lineNum">     714 </span>                : 
<span class="lineNum">     715 </span><span class="lineNoCov">              0 :     siglongjmp( signal_handler::jump_buffer(), sig );</span>
<span class="lineNum">     716 </span>                : }
<span class="lineNum">     717 </span>                : 
<span class="lineNum">     718 </span>                : //____________________________________________________________________________//
<span class="lineNum">     719 </span>                : 
<span class="lineNum">     720 </span><span class="lineNoCov">              0 : static void execution_monitor_attaching_signal_handler( int sig, siginfo_t* info, void* context )</span>
<span class="lineNum">     721 </span>                : {
<span class="lineNum">     722 </span><span class="lineNoCov">              0 :     if( ignore_sigchild( info ) )</span>
<span class="lineNum">     723 </span><span class="lineNoCov">              0 :         return;</span>
<span class="lineNum">     724 </span>                : 
<span class="lineNum">     725 </span><span class="lineNoCov">              0 :     if( !debug::attach_debugger( false ) )</span>
<span class="lineNum">     726 </span><span class="lineNoCov">              0 :         execution_monitor_jumping_signal_handler( sig, info, context );</span>
<span class="lineNum">     727 </span>                : 
<span class="lineNum">     728 </span>                :     // debugger attached; it will handle the signal
<span class="lineNum">     729 </span><span class="lineNoCov">              0 :     BOOST_TEST_SYS_ASSERT( ::signal( sig, SIG_DFL ) != SIG_ERR );</span>
<span class="lineNum">     730 </span>                : }
<span class="lineNum">     731 </span>                : 
<span class="lineNum">     732 </span>                : //____________________________________________________________________________//
<span class="lineNum">     733 </span>                : 
<span class="lineNum">     734 </span>                : }
<span class="lineNum">     735 </span>                : 
<span class="lineNum">     736 </span>                : } // namespace detail
<span class="lineNum">     737 </span>                : 
<span class="lineNum">     738 </span>                : // ************************************************************************** //
<span class="lineNum">     739 </span>                : // **************        execution_monitor::catch_signals      ************** //
<span class="lineNum">     740 </span>                : // ************************************************************************** //
<span class="lineNum">     741 </span>                : 
<span class="lineNum">     742 </span>                : int
<span class="lineNum">     743 </span><span class="lineCov">             15 : execution_monitor::catch_signals( unit_test::callback0&lt;int&gt; const&amp; F )</span>
<span class="lineNum">     744 </span>                : {
<span class="lineNum">     745 </span>                :     using namespace detail;
<span class="lineNum">     746 </span>                : 
<span class="lineNum">     747 </span>                : #if defined(__CYGWIN__)
<span class="lineNum">     748 </span>                :     p_catch_system_errors.value = false;
<span class="lineNum">     749 </span>                : #endif
<span class="lineNum">     750 </span>                : 
<span class="lineNum">     751 </span>                : #ifdef BOOST_TEST_USE_ALT_STACK
<span class="lineNum">     752 </span><span class="lineCov">             15 :     if( !!p_use_alt_stack &amp;&amp; !m_alt_stack )</span>
<span class="lineNum">     753 </span><span class="lineCov">              8 :         m_alt_stack.reset( new char[BOOST_TEST_ALT_STACK_SIZE] );</span>
<span class="lineNum">     754 </span>                : #else
<span class="lineNum">     755 </span>                :     p_use_alt_stack.value = false;
<span class="lineNum">     756 </span>                : #endif
<span class="lineNum">     757 </span>                : 
<span class="lineNum">     758 </span>                :     signal_handler local_signal_handler( p_catch_system_errors, p_timeout, p_auto_start_dbg, 
<span class="lineNum">     759 </span><span class="lineCov">             15 :                                          !p_use_alt_stack ? 0 : m_alt_stack.get() );</span>
<span class="lineNum">     760 </span>                : 
<span class="lineNum">     761 </span><span class="lineCov">             15 :     if( !sigsetjmp( signal_handler::jump_buffer(), 1 ) )</span>
<span class="lineNum">     762 </span><span class="lineCov">             15 :         return detail::do_invoke( m_custom_translators , F );</span>
<span class="lineNum">     763 </span>                :     else
<span class="lineNum">     764 </span><span class="lineCov">             15 :         throw local_signal_handler.sys_sig();</span>
<span class="lineNum">     765 </span>                : }
<span class="lineNum">     766 </span>                : 
<span class="lineNum">     767 </span>                : //____________________________________________________________________________//
<span class="lineNum">     768 </span>                : 
<span class="lineNum">     769 </span>                : #elif defined(BOOST_SEH_BASED_SIGNAL_HANDLING)
<span class="lineNum">     770 </span>                : 
<span class="lineNum">     771 </span>                : // ************************************************************************** //
<span class="lineNum">     772 </span>                : // **************   Microsoft structured exception handling    ************** //
<span class="lineNum">     773 </span>                : // ************************************************************************** //
<span class="lineNum">     774 </span>                : 
<span class="lineNum">     775 </span>                : #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x0564))
<span class="lineNum">     776 </span>                : namespace { void _set_se_translator( void* ) {} }
<span class="lineNum">     777 </span>                : #endif
<span class="lineNum">     778 </span>                : 
<span class="lineNum">     779 </span>                : namespace detail {
<span class="lineNum">     780 </span>                : 
<span class="lineNum">     781 </span>                : // ************************************************************************** //
<span class="lineNum">     782 </span>                : // **************    boost::detail::system_signal_exception    ************** //
<span class="lineNum">     783 </span>                : // ************************************************************************** //
<span class="lineNum">     784 </span>                : 
<span class="lineNum">     785 </span>                : class system_signal_exception {
<span class="lineNum">     786 </span>                : public:
<span class="lineNum">     787 </span>                :     // Constructor
<span class="lineNum">     788 </span>                :     explicit            system_signal_exception( execution_monitor* em )
<span class="lineNum">     789 </span>                :     : m_em( em )
<span class="lineNum">     790 </span>                :     , m_se_id( 0 )
<span class="lineNum">     791 </span>                :     , m_fault_address( 0 )
<span class="lineNum">     792 </span>                :     , m_dir( false )
<span class="lineNum">     793 </span>                :     {}
<span class="lineNum">     794 </span>                : 
<span class="lineNum">     795 </span>                :     void                report() const;
<span class="lineNum">     796 </span>                :     int                 operator()( unsigned int id, _EXCEPTION_POINTERS* exps );
<span class="lineNum">     797 </span>                : 
<span class="lineNum">     798 </span>                : private:
<span class="lineNum">     799 </span>                :     // Data members
<span class="lineNum">     800 </span>                :     execution_monitor*  m_em;
<span class="lineNum">     801 </span>                : 
<span class="lineNum">     802 </span>                :     unsigned int        m_se_id;
<span class="lineNum">     803 </span>                :     void*               m_fault_address;
<span class="lineNum">     804 </span>                :     bool                m_dir;
<span class="lineNum">     805 </span>                : };
<span class="lineNum">     806 </span>                : 
<span class="lineNum">     807 </span>                : static void
<span class="lineNum">     808 </span>                : seh_catch_preventer( unsigned int /* id */, _EXCEPTION_POINTERS* /* exps */ )
<span class="lineNum">     809 </span>                : {
<span class="lineNum">     810 </span>                :         throw;
<span class="lineNum">     811 </span>                : }
<span class="lineNum">     812 </span>                : 
<span class="lineNum">     813 </span>                : //____________________________________________________________________________//
<span class="lineNum">     814 </span>                : 
<span class="lineNum">     815 </span>                : int
<span class="lineNum">     816 </span>                : system_signal_exception::operator()( unsigned int id, _EXCEPTION_POINTERS* exps )
<span class="lineNum">     817 </span>                : {
<span class="lineNum">     818 </span>                :     const unsigned int MSFT_CPP_EXCEPT = 0xE06d7363; // EMSC
<span class="lineNum">     819 </span>                : 
<span class="lineNum">     820 </span>                :     if( !m_em-&gt;p_catch_system_errors || (id == MSFT_CPP_EXCEPT) )
<span class="lineNum">     821 </span>                :         return EXCEPTION_CONTINUE_SEARCH;
<span class="lineNum">     822 </span>                : 
<span class="lineNum">     823 </span>                :     if( !!m_em-&gt;p_auto_start_dbg &amp;&amp; debug::attach_debugger( false ) ) {
<span class="lineNum">     824 </span>                :         m_em-&gt;p_catch_system_errors.value = false;
<span class="lineNum">     825 </span>                :         _set_se_translator( &amp;seh_catch_preventer );
<span class="lineNum">     826 </span>                : 
<span class="lineNum">     827 </span>                :         return EXCEPTION_CONTINUE_EXECUTION;
<span class="lineNum">     828 </span>                :     }
<span class="lineNum">     829 </span>                : 
<span class="lineNum">     830 </span>                :     m_se_id = id;
<span class="lineNum">     831 </span>                :     if( m_se_id == EXCEPTION_ACCESS_VIOLATION &amp;&amp; exps-&gt;ExceptionRecord-&gt;NumberParameters == 2 ) {
<span class="lineNum">     832 </span>                :         m_fault_address = (void*)exps-&gt;ExceptionRecord-&gt;ExceptionInformation[1];
<span class="lineNum">     833 </span>                :         m_dir           = exps-&gt;ExceptionRecord-&gt;ExceptionInformation[0] == 0;
<span class="lineNum">     834 </span>                :     }
<span class="lineNum">     835 </span>                : 
<span class="lineNum">     836 </span>                :     return EXCEPTION_EXECUTE_HANDLER;
<span class="lineNum">     837 </span>                : }
<span class="lineNum">     838 </span>                : 
<span class="lineNum">     839 </span>                : //____________________________________________________________________________//
<span class="lineNum">     840 </span>                : 
<span class="lineNum">     841 </span>                : void
<span class="lineNum">     842 </span>                : system_signal_exception::report() const
<span class="lineNum">     843 </span>                : {
<span class="lineNum">     844 </span>                :     switch( m_se_id ) {
<span class="lineNum">     845 </span>                :     // cases classified as system_fatal_error
<span class="lineNum">     846 </span>                :     case EXCEPTION_ACCESS_VIOLATION: {
<span class="lineNum">     847 </span>                :         if( !m_fault_address )
<span class="lineNum">     848 </span>                :             detail::report_error( execution_exception::system_fatal_error, &quot;memory access violation&quot; );
<span class="lineNum">     849 </span>                :         else
<span class="lineNum">     850 </span>                :             detail::report_error(
<span class="lineNum">     851 </span>                :                 execution_exception::system_fatal_error,
<span class="lineNum">     852 </span>                :                     &quot;memory access violation occurred at address 0x%08lx, while attempting to %s&quot;,
<span class="lineNum">     853 </span>                :                     m_fault_address,
<span class="lineNum">     854 </span>                :                     m_dir ? &quot; read inaccessible data&quot;
<span class="lineNum">     855 </span>                :                           : &quot; write to an inaccessible (or protected) address&quot;
<span class="lineNum">     856 </span>                :                     );
<span class="lineNum">     857 </span>                :         break;
<span class="lineNum">     858 </span>                :     }
<span class="lineNum">     859 </span>                : 
<span class="lineNum">     860 </span>                :     case EXCEPTION_ILLEGAL_INSTRUCTION:
<span class="lineNum">     861 </span>                :         detail::report_error( execution_exception::system_fatal_error, &quot;illegal instruction&quot; );
<span class="lineNum">     862 </span>                :         break;
<span class="lineNum">     863 </span>                : 
<span class="lineNum">     864 </span>                :     case EXCEPTION_PRIV_INSTRUCTION:
<span class="lineNum">     865 </span>                :         detail::report_error( execution_exception::system_fatal_error, &quot;tried to execute an instruction whose operation is not allowed in the current machine mode&quot; );
<span class="lineNum">     866 </span>                :         break;
<span class="lineNum">     867 </span>                : 
<span class="lineNum">     868 </span>                :     case EXCEPTION_IN_PAGE_ERROR:
<span class="lineNum">     869 </span>                :         detail::report_error( execution_exception::system_fatal_error, &quot;access to a memory page that is not present&quot; );
<span class="lineNum">     870 </span>                :         break;
<span class="lineNum">     871 </span>                : 
<span class="lineNum">     872 </span>                :     case EXCEPTION_STACK_OVERFLOW:
<span class="lineNum">     873 </span>                :         detail::report_error( execution_exception::system_fatal_error, &quot;stack overflow&quot; );
<span class="lineNum">     874 </span>                :         break;
<span class="lineNum">     875 </span>                : 
<span class="lineNum">     876 </span>                :     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
<span class="lineNum">     877 </span>                :         detail::report_error( execution_exception::system_fatal_error, &quot;tried to continue execution after a non continuable exception occurred&quot; );
<span class="lineNum">     878 </span>                :         break;
<span class="lineNum">     879 </span>                : 
<span class="lineNum">     880 </span>                :     // cases classified as (non-fatal) system_trap
<span class="lineNum">     881 </span>                :     case EXCEPTION_DATATYPE_MISALIGNMENT:
<span class="lineNum">     882 </span>                :         detail::report_error( execution_exception::system_error, &quot;data misalignment&quot; );
<span class="lineNum">     883 </span>                :         break;
<span class="lineNum">     884 </span>                : 
<span class="lineNum">     885 </span>                :     case EXCEPTION_INT_DIVIDE_BY_ZERO:
<span class="lineNum">     886 </span>                :         detail::report_error( execution_exception::system_error, &quot;integer divide by zero&quot; );
<span class="lineNum">     887 </span>                :         break;
<span class="lineNum">     888 </span>                : 
<span class="lineNum">     889 </span>                :     case EXCEPTION_INT_OVERFLOW:
<span class="lineNum">     890 </span>                :         detail::report_error( execution_exception::system_error, &quot;integer overflow&quot; );
<span class="lineNum">     891 </span>                :         break;
<span class="lineNum">     892 </span>                : 
<span class="lineNum">     893 </span>                :     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
<span class="lineNum">     894 </span>                :         detail::report_error( execution_exception::system_error, &quot;array bounds exceeded&quot; );
<span class="lineNum">     895 </span>                :         break;
<span class="lineNum">     896 </span>                : 
<span class="lineNum">     897 </span>                :     case EXCEPTION_FLT_DIVIDE_BY_ZERO:
<span class="lineNum">     898 </span>                :         detail::report_error( execution_exception::system_error, &quot;floating point divide by zero&quot; );
<span class="lineNum">     899 </span>                :         break;
<span class="lineNum">     900 </span>                : 
<span class="lineNum">     901 </span>                :     case EXCEPTION_FLT_STACK_CHECK:
<span class="lineNum">     902 </span>                :         detail::report_error( execution_exception::system_error,
<span class="lineNum">     903 </span>                :                               &quot;stack overflowed or underflowed as the result of a floating-point operation&quot; );
<span class="lineNum">     904 </span>                :         break;
<span class="lineNum">     905 </span>                : 
<span class="lineNum">     906 </span>                :     case EXCEPTION_FLT_DENORMAL_OPERAND:
<span class="lineNum">     907 </span>                :         detail::report_error( execution_exception::system_error,
<span class="lineNum">     908 </span>                :                               &quot;operand of floating point operation is denormal&quot; );
<span class="lineNum">     909 </span>                :         break;
<span class="lineNum">     910 </span>                : 
<span class="lineNum">     911 </span>                : # if 0 // !! ?? 
<span class="lineNum">     912 </span>                :     case EXCEPTION_FLT_INEXACT_RESULT:
<span class="lineNum">     913 </span>                :         detail::report_error( execution_exception::system_error,
<span class="lineNum">     914 </span>                :                               &quot;result of a floating-point operation cannot be represented exactly&quot; );
<span class="lineNum">     915 </span>                :         break;
<span class="lineNum">     916 </span>                : #endif
<span class="lineNum">     917 </span>                : 
<span class="lineNum">     918 </span>                :     case EXCEPTION_FLT_OVERFLOW:
<span class="lineNum">     919 </span>                :         detail::report_error( execution_exception::system_error,
<span class="lineNum">     920 </span>                :                               &quot;exponent of a floating-point operation is greater than the magnitude allowed by the corresponding type&quot; );
<span class="lineNum">     921 </span>                :         break;
<span class="lineNum">     922 </span>                : 
<span class="lineNum">     923 </span>                :     case EXCEPTION_FLT_UNDERFLOW:
<span class="lineNum">     924 </span>                :         detail::report_error( execution_exception::system_error,
<span class="lineNum">     925 </span>                :                               &quot;exponent of a floating-point operation is less than the magnitude allowed by the corresponding type&quot; );
<span class="lineNum">     926 </span>                :         break;
<span class="lineNum">     927 </span>                : 
<span class="lineNum">     928 </span>                :     case EXCEPTION_FLT_INVALID_OPERATION:
<span class="lineNum">     929 </span>                :         detail::report_error( execution_exception::system_error, &quot;floating point error&quot; );
<span class="lineNum">     930 </span>                :         break;
<span class="lineNum">     931 </span>                : 
<span class="lineNum">     932 </span>                :     case EXCEPTION_BREAKPOINT:
<span class="lineNum">     933 </span>                :         detail::report_error( execution_exception::system_error, &quot;breakpoint encountered&quot; );
<span class="lineNum">     934 </span>                :         break;
<span class="lineNum">     935 </span>                : 
<span class="lineNum">     936 </span>                :     default:
<span class="lineNum">     937 </span>                :         detail::report_error( execution_exception::system_error, &quot;unrecognized exception. Id: 0x%08lx&quot;, m_se_id );
<span class="lineNum">     938 </span>                :         break;
<span class="lineNum">     939 </span>                :     }
<span class="lineNum">     940 </span>                : }
<span class="lineNum">     941 </span>                : 
<span class="lineNum">     942 </span>                : //____________________________________________________________________________//
<span class="lineNum">     943 </span>                : 
<span class="lineNum">     944 </span>                : #if defined(BOOST_TEST_USE_DEBUG_MS_CRT)
<span class="lineNum">     945 </span>                : 
<span class="lineNum">     946 </span>                : // ************************************************************************** //
<span class="lineNum">     947 </span>                : // **************          assert_reporting_function           ************** //
<span class="lineNum">     948 </span>                : // ************************************************************************** //
<span class="lineNum">     949 </span>                : 
<span class="lineNum">     950 </span>                : int BOOST_TEST_CALL_DECL
<span class="lineNum">     951 </span>                : assert_reporting_function( int reportType, char* userMessage, int* retVal )
<span class="lineNum">     952 </span>                : {
<span class="lineNum">     953 </span>                :     switch( reportType ) {
<span class="lineNum">     954 </span>                :     case _CRT_ASSERT:
<span class="lineNum">     955 </span>                :         detail::report_error( execution_exception::user_error, userMessage );
<span class="lineNum">     956 </span>                : 
<span class="lineNum">     957 </span>                :         return 1; // return value and retVal are not important since we never reach this line
<span class="lineNum">     958 </span>                :     case _CRT_ERROR:
<span class="lineNum">     959 </span>                :         detail::report_error( execution_exception::system_error, userMessage );
<span class="lineNum">     960 </span>                : 
<span class="lineNum">     961 </span>                :         return 1; // return value and retVal are not important since we never reach this line
<span class="lineNum">     962 </span>                :     default:
<span class="lineNum">     963 </span>                :         return 0; // use usual reporting method
<span class="lineNum">     964 </span>                :     }
<span class="lineNum">     965 </span>                : } // assert_reporting_function
<span class="lineNum">     966 </span>                : 
<span class="lineNum">     967 </span>                : #endif
<span class="lineNum">     968 </span>                : 
<span class="lineNum">     969 </span>                : //____________________________________________________________________________//
<span class="lineNum">     970 </span>                : 
<span class="lineNum">     971 </span>                : void BOOST_TEST_CALL_DECL
<span class="lineNum">     972 </span>                : invalid_param_handler( wchar_t const* /* expr */, 
<span class="lineNum">     973 </span>                :                        wchar_t const* /* func */, 
<span class="lineNum">     974 </span>                :                        wchar_t const* /* file */, 
<span class="lineNum">     975 </span>                :                        unsigned int   /* line */,
<span class="lineNum">     976 </span>                :                        uintptr_t      /* reserved */)
<span class="lineNum">     977 </span>                : {
<span class="lineNum">     978 </span>                :     detail::report_error( execution_exception::user_error, 
<span class="lineNum">     979 </span>                :                           &quot;Invalid parameter detected by C runtime library&quot; );
<span class="lineNum">     980 </span>                : }
<span class="lineNum">     981 </span>                : 
<span class="lineNum">     982 </span>                : //____________________________________________________________________________//
<span class="lineNum">     983 </span>                : 
<span class="lineNum">     984 </span>                : void BOOST_TEST_CALL_DECL
<span class="lineNum">     985 </span>                : switch_fp_exceptions( bool on_off )
<span class="lineNum">     986 </span>                : {
<span class="lineNum">     987 </span>                :     if( !on_off )
<span class="lineNum">     988 </span>                :         _clearfp();
<span class="lineNum">     989 </span>                : 
<span class="lineNum">     990 </span>                :     int cw = ::_controlfp( 0, 0 );
<span class="lineNum">     991 </span>                : 
<span class="lineNum">     992 </span>                :     int exceptions_mask = EM_INVALID|EM_DENORMAL|EM_ZERODIVIDE|EM_OVERFLOW|EM_UNDERFLOW;
<span class="lineNum">     993 </span>                : 
<span class="lineNum">     994 </span>                :     if( on_off )
<span class="lineNum">     995 </span>                :         cw &amp;= ~exceptions_mask; // Set the exception masks on, turn exceptions off
<span class="lineNum">     996 </span>                :     else
<span class="lineNum">     997 </span>                :         cw |= exceptions_mask;  // Set the exception masks off, turn exceptions on
<span class="lineNum">     998 </span>                : 
<span class="lineNum">     999 </span>                :     if( on_off )
<span class="lineNum">    1000 </span>                :         _clearfp();
<span class="lineNum">    1001 </span>                :         
<span class="lineNum">    1002 </span>                :     // Set the control word
<span class="lineNum">    1003 </span>                :     ::_controlfp( cw, MCW_EM );
<span class="lineNum">    1004 </span>                : }
<span class="lineNum">    1005 </span>                : 
<span class="lineNum">    1006 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1007 </span>                : 
<span class="lineNum">    1008 </span>                : } // namespace detail
<span class="lineNum">    1009 </span>                : 
<span class="lineNum">    1010 </span>                : // ************************************************************************** //
<span class="lineNum">    1011 </span>                : // **************        execution_monitor::catch_signals      ************** //
<span class="lineNum">    1012 </span>                : // ************************************************************************** //
<span class="lineNum">    1013 </span>                : 
<span class="lineNum">    1014 </span>                : int
<span class="lineNum">    1015 </span>                : execution_monitor::catch_signals( unit_test::callback0&lt;int&gt; const&amp; F )
<span class="lineNum">    1016 </span>                : {
<span class="lineNum">    1017 </span>                :     _invalid_parameter_handler old_iph = _invalid_parameter_handler();
<span class="lineNum">    1018 </span>                : 
<span class="lineNum">    1019 </span>                :     if( !p_catch_system_errors )
<span class="lineNum">    1020 </span>                :         _set_se_translator( &amp;detail::seh_catch_preventer );
<span class="lineNum">    1021 </span>                :     else {
<span class="lineNum">    1022 </span>                :         if( !!p_detect_fp_exceptions )
<span class="lineNum">    1023 </span>                :             detail::switch_fp_exceptions( true );
<span class="lineNum">    1024 </span>                : 
<span class="lineNum">    1025 </span>                : #ifdef BOOST_TEST_USE_DEBUG_MS_CRT
<span class="lineNum">    1026 </span>                :        _CrtSetReportHook( &amp;detail::assert_reporting_function );
<span class="lineNum">    1027 </span>                : #endif
<span class="lineNum">    1028 </span>                : 
<span class="lineNum">    1029 </span>                :        old_iph = _set_invalid_parameter_handler( 
<span class="lineNum">    1030 </span>                :            reinterpret_cast&lt;_invalid_parameter_handler&gt;( &amp;detail::invalid_param_handler ) );
<span class="lineNum">    1031 </span>                :     }
<span class="lineNum">    1032 </span>                : 
<span class="lineNum">    1033 </span>                :     detail::system_signal_exception SSE( this );
<span class="lineNum">    1034 </span>                :     
<span class="lineNum">    1035 </span>                :     int ret_val = 0;
<span class="lineNum">    1036 </span>                : 
<span class="lineNum">    1037 </span>                :     __try {
<span class="lineNum">    1038 </span>                :         __try {
<span class="lineNum">    1039 </span>                :             ret_val = detail::do_invoke( m_custom_translators, F );
<span class="lineNum">    1040 </span>                :         }
<span class="lineNum">    1041 </span>                :         __except( SSE( GetExceptionCode(), GetExceptionInformation() ) ) {
<span class="lineNum">    1042 </span>                :             throw SSE;
<span class="lineNum">    1043 </span>                :         }
<span class="lineNum">    1044 </span>                :     }
<span class="lineNum">    1045 </span>                :     __finally {
<span class="lineNum">    1046 </span>                :         if( !!p_catch_system_errors ) {
<span class="lineNum">    1047 </span>                :             if( !!p_detect_fp_exceptions )
<span class="lineNum">    1048 </span>                :                 detail::switch_fp_exceptions( false );
<span class="lineNum">    1049 </span>                : 
<span class="lineNum">    1050 </span>                :            _set_invalid_parameter_handler( old_iph );
<span class="lineNum">    1051 </span>                :         }
<span class="lineNum">    1052 </span>                :     }
<span class="lineNum">    1053 </span>                : 
<span class="lineNum">    1054 </span>                :     return ret_val;
<span class="lineNum">    1055 </span>                : }
<span class="lineNum">    1056 </span>                : 
<span class="lineNum">    1057 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1058 </span>                : 
<span class="lineNum">    1059 </span>                : #else  // default signal handler
<span class="lineNum">    1060 </span>                : 
<span class="lineNum">    1061 </span>                : namespace detail {
<span class="lineNum">    1062 </span>                : 
<span class="lineNum">    1063 </span>                : class system_signal_exception {
<span class="lineNum">    1064 </span>                : public:
<span class="lineNum">    1065 </span>                :     void   report() const {}
<span class="lineNum">    1066 </span>                : };
<span class="lineNum">    1067 </span>                : 
<span class="lineNum">    1068 </span>                : } // namespace detail
<span class="lineNum">    1069 </span>                : 
<span class="lineNum">    1070 </span>                : int
<span class="lineNum">    1071 </span>                : execution_monitor::catch_signals( unit_test::callback0&lt;int&gt; const&amp; F )
<span class="lineNum">    1072 </span>                : {
<span class="lineNum">    1073 </span>                :     return detail::do_invoke( m_custom_translators , F );
<span class="lineNum">    1074 </span>                : }
<span class="lineNum">    1075 </span>                : 
<span class="lineNum">    1076 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1077 </span>                : 
<span class="lineNum">    1078 </span>                : #endif  // choose signal handler
<span class="lineNum">    1079 </span>                : 
<span class="lineNum">    1080 </span>                : // ************************************************************************** //
<span class="lineNum">    1081 </span>                : // **************          execution_monitor::execute          ************** //
<span class="lineNum">    1082 </span>                : // ************************************************************************** //
<span class="lineNum">    1083 </span>                : 
<span class="lineNum">    1084 </span>                : int
<span class="lineNum">    1085 </span><span class="lineCov">             15 : execution_monitor::execute( unit_test::callback0&lt;int&gt; const&amp; F )</span>
<span class="lineNum">    1086 </span>                : {
<span class="lineNum">    1087 </span><span class="lineCov">             15 :     if( debug::under_debugger() )</span>
<span class="lineNum">    1088 </span><span class="lineNoCov">              0 :         p_catch_system_errors.value = false;</span>
<span class="lineNum">    1089 </span>                : 
<span class="lineNum">    1090 </span>                :     try {
<span class="lineNum">    1091 </span><span class="lineCov">             15 :         return catch_signals( F );</span>
<span class="lineNum">    1092 </span>                :     }
<span class="lineNum">    1093 </span>                : 
<span class="lineNum">    1094 </span>                :     //  Catch-clause reference arguments are a bit different from function
<span class="lineNum">    1095 </span>                :     //  arguments (ISO 15.3 paragraphs 18 &amp; 19).  Apparently const isn't
<span class="lineNum">    1096 </span>                :     //  required.  Programmers ask for const anyhow, so we supply it.  That's
<span class="lineNum">    1097 </span>                :     //  easier than answering questions about non-const usage.
<span class="lineNum">    1098 </span>                : 
<span class="lineNum">    1099 </span><span class="lineNoCov">              0 :     catch( char const* ex )</span>
<span class="lineNum">    1100 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;C string: %s&quot;, ex ); }</span>
<span class="lineNum">    1101 </span><span class="lineNoCov">              0 :     catch( std::string const&amp; ex )</span>
<span class="lineNum">    1102 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::string: %s&quot;, ex.c_str() ); }</span>
<span class="lineNum">    1103 </span>                : 
<span class="lineNum">    1104 </span>                :     //  std:: exceptions
<span class="lineNum">    1105 </span>                : 
<span class="lineNum">    1106 </span><span class="lineNoCov">              0 :     catch( std::bad_alloc const&amp; ex )</span>
<span class="lineNum">    1107 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_alloc: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1108 </span>                : 
<span class="lineNum">    1109 </span>                : #if BOOST_WORKAROUND(__BORLANDC__, &lt;= 0x0551)
<span class="lineNum">    1110 </span>                :     catch( std::bad_cast const&amp; ex )
<span class="lineNum">    1111 </span>                :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_cast&quot; ); }
<span class="lineNum">    1112 </span>                :     catch( std::bad_typeid const&amp; ex )
<span class="lineNum">    1113 </span>                :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_typeid&quot; ); }
<span class="lineNum">    1114 </span>                : #else
<span class="lineNum">    1115 </span><span class="lineNoCov">              0 :     catch( std::bad_cast const&amp; ex )</span>
<span class="lineNum">    1116 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_cast: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1117 </span><span class="lineNoCov">              0 :     catch( std::bad_typeid const&amp; ex )</span>
<span class="lineNum">    1118 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_typeid: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1119 </span>                : #endif
<span class="lineNum">    1120 </span>                : 
<span class="lineNum">    1121 </span><span class="lineNoCov">              0 :     catch( std::bad_exception const&amp; ex )</span>
<span class="lineNum">    1122 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::bad_exception: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1123 </span><span class="lineNoCov">              0 :     catch( std::domain_error const&amp; ex )</span>
<span class="lineNum">    1124 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::domain_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1125 </span><span class="lineNoCov">              0 :     catch( std::invalid_argument const&amp; ex )</span>
<span class="lineNum">    1126 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::invalid_argument: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1127 </span><span class="lineNoCov">              0 :     catch( std::length_error const&amp; ex )</span>
<span class="lineNum">    1128 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::length_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1129 </span><span class="lineNoCov">              0 :     catch( std::out_of_range const&amp; ex )</span>
<span class="lineNum">    1130 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::out_of_range: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1131 </span><span class="lineNoCov">              0 :     catch( std::range_error const&amp; ex )</span>
<span class="lineNum">    1132 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::range_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1133 </span><span class="lineNoCov">              0 :     catch( std::overflow_error const&amp; ex )</span>
<span class="lineNum">    1134 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::overflow_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1135 </span><span class="lineNoCov">              0 :     catch( std::underflow_error const&amp; ex )</span>
<span class="lineNum">    1136 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::underflow_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1137 </span><span class="lineNoCov">              0 :     catch( std::logic_error const&amp; ex )</span>
<span class="lineNum">    1138 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::logic_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1139 </span><span class="lineNoCov">              0 :     catch( std::runtime_error const&amp; ex )</span>
<span class="lineNum">    1140 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::runtime_error: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1141 </span><span class="lineNoCov">              0 :     catch( std::exception const&amp; ex )</span>
<span class="lineNum">    1142 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;std::exception: %s&quot;, ex.what() ); }</span>
<span class="lineNum">    1143 </span><span class="lineNoCov">              0 :     catch( system_error const&amp; ex )</span>
<span class="lineNum">    1144 </span>                :       { detail::report_error( execution_exception::cpp_exception_error, &quot;system_error produced by: %s: %s&quot;, 
<span class="lineNum">    1145 </span>                :                               ex.p_failed_exp.get(), 
<span class="lineNum">    1146 </span><span class="lineNoCov">              0 :                               std::strerror( ex.p_errno ) ); }</span>
<span class="lineNum">    1147 </span><span class="lineNoCov">              0 :     catch( detail::system_signal_exception const&amp; ex )</span>
<span class="lineNum">    1148 </span><span class="lineNoCov">              0 :       { ex.report(); }</span>
<span class="lineNum">    1149 </span><span class="lineNoCov">              0 :     catch( execution_aborted const&amp; )</span>
<span class="lineNum">    1150 </span><span class="lineNoCov">              0 :       { return 0; }</span>
<span class="lineNum">    1151 </span><span class="lineNoCov">              0 :     catch( execution_exception const&amp; )</span>
<span class="lineNum">    1152 </span><span class="lineNoCov">              0 :       { throw; }</span>
<span class="lineNum">    1153 </span>                : 
<span class="lineNum">    1154 </span><span class="lineNoCov">              0 :     catch( ... )</span>
<span class="lineNum">    1155 </span><span class="lineNoCov">              0 :       { detail::report_error( execution_exception::cpp_exception_error, &quot;unknown type&quot; ); }</span>
<span class="lineNum">    1156 </span>                : 
<span class="lineNum">    1157 </span><span class="lineNoCov">              0 :     return 0;  // never reached; supplied to quiet compiler warnings</span>
<span class="lineNum">    1158 </span>                : } // execute
<span class="lineNum">    1159 </span>                : 
<span class="lineNum">    1160 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1161 </span>                : 
<span class="lineNum">    1162 </span>                : // ************************************************************************** //
<span class="lineNum">    1163 </span>                : // **************                  system_error                ************** //
<span class="lineNum">    1164 </span>                : // ************************************************************************** //
<span class="lineNum">    1165 </span>                : 
<span class="lineNum">    1166 </span><span class="lineNoCov">              0 : system_error::system_error( char const* exp )</span>
<span class="lineNum">    1167 </span>                : #ifdef UNDER_CE
<span class="lineNum">    1168 </span>                : : p_errno( GetLastError() )
<span class="lineNum">    1169 </span>                : #else
<span class="lineNum">    1170 </span>                : : p_errno( errno )
<span class="lineNum">    1171 </span>                : #endif
<span class="lineNum">    1172 </span><span class="lineNoCov">              0 : , p_failed_exp( exp )</span>
<span class="lineNum">    1173 </span><span class="lineNoCov">              0 : {}</span>
<span class="lineNum">    1174 </span>                : 
<span class="lineNum">    1175 </span>                : 
<span class="lineNum">    1176 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1177 </span>                : 
<span class="lineNum">    1178 </span>                : } // namespace boost
<span class="lineNum">    1179 </span>                : 
<span class="lineNum">    1180 </span>                : //____________________________________________________________________________//
<span class="lineNum">    1181 </span>                : 
<span class="lineNum">    1182 </span>                : #include &lt;boost/test/detail/enable_warnings.hpp&gt;
<span class="lineNum">    1183 </span>                : 
<span class="lineNum">    1184 </span>                : #endif // BOOST_TEST_EXECUTION_MONITOR_IPP_012205GER
<span class="lineNum">    1185 </span>                : 
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
